package com.makerjia.magpiebridge.web;

import com.makerjia.magpiebridge.service.TestService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author caohw
 * @date 2020/6/9
 */
@RestController
@RequestMapping("api")
public class TestController {

    @Resource
    private TestService testService;

    @GetMapping("test")
    public ResponseEntity<String> test() {
        return ResponseEntity.ok(testService.testValue());
    }
}
